package cloth.service;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import cloth.dao.OrderHistoryDAO;
import cloth.vo.OrderHistoryVO;

public class OrderHistoryService {
	
	public OrderHistoryService(){}
	public OrderHistoryDAO orderHistryDAO;
	public void setOrderHistoryDAO(OrderHistoryDAO orderHistryDAO) {
		this.orderHistryDAO = orderHistryDAO;
	}

	public ArrayList<OrderHistoryVO> selectOrderHistoryByDeliveryStatus(HashMap hm) throws SQLException{
		return orderHistryDAO.selectOrderHistoryByDeliveryStatus(hm);
	}


	public ArrayList<OrderHistoryVO> selectOrderHistory(HashMap hm) throws SQLException{
		return orderHistryDAO.selectOrderHistory(hm);
	}
	
	public void insertOrderHistoryOne(HashMap map)throws SQLException{
		orderHistryDAO.insertOrderHistoryOne(map);
	}
	
	public void deleteOrderHistroy(String p_id)throws SQLException{
		orderHistryDAO.deleteOrderHistroy(p_id);
	}
	
	public void deleteOrderHistroyByP_id(String p_id)throws SQLException{
		orderHistryDAO.deleteOrderHistroyByP_id(p_id);
	}
	
	
}
